<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../template/templateMenu.xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="conteudo">

        <h:form>
            <p:panel  header="Álbum #{discoBean.album.nomeAlbum}" style="width: auto; height: auto; font-style: normal; font-size: 12px">
                <p:messages id="messages" showDetail="true" />

                <h:panelGrid columns="2">

                    <h:outputLabel for="nome" value="Nome do Disco: *"/>
                    <p:inputText id="nomeDisco" value="#{discoBean.disco.nomeDisco}" label="Nome" size="20"/>
                    <h:outputLabel for="nome" value="Disco Número:"/>
                    <p:inputText id="numeroDisco" value="#{discoBean.disco.num}" label="Nome" size="6"/>

                    <div align="south">

                        <h:panelGrid columns="6">

                            <p:commandButton value="Salvar" ajax="false" action="#{discoBean.salvar}"/>
                            <p:commandButton value="Limpar" ajax="false" type="reset"/>
                            <p:commandButton value="Cancelar" ajax="false" action="/index.xhtml"/>
                        </h:panelGrid>
                    </div>

                </h:panelGrid>

            </p:panel>

        </h:form>

    </ui:define>

</ui:composition>


